package com.cychat.mall.entity.DTO;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * Auther: 刘俊  <br/>
 * Date: 2025-11-4:上午 9:48  <br/>
 * Description:
 */
@Data
public class CartQuantityUpdateDTO {
    @NotNull(message = "cartId 不能为空")
    private Long cartId;

    @Min(value = 1, message = "商品数量不能小于1")
    private Integer quantity;
}
